﻿using System;
using System.Collections.Generic;

using RexToy.UI.WinForm.Pmlx;

namespace RexToy.UI.WinForm.Controls
{
    public class MDIContainerForm : Form
    {
        public override void ParseTemplate(PmlxNode px)
        {
            base.ParseTemplate(px);

            var xMenu = px.NavigateToSingleOrNull(MAIN_MENU);
            if (xMenu != null)
            {
                System.Windows.Forms.ToolStrip ts = ToolStripBuilder.BuildMenu(xMenu);
                this.AddFormMenu(ts);
            }
        }
    }
}
